home *** CD-ROM | disk | FTP | other *** search
- <%@ page language="java" import="
- java.util.*,
- com.jproxy.site.ejbeans.interfaces.*,
- com.jproxy.site.*"
-
- %>
- <jsp:useBean id="ses" scope="session" class="com.jproxy.site.JSPSession"/>
- <%
- ses.request(pageContext);
- ses.setNewHit(pageContext, "hits", "Account Login", null);
- %>
-
- <%
- String submit = request.getParameter("submit");
- submit = (submit==null) ? "" : submit;
-
- String login = request.getParameter("login");
- login = (login==null) ? "" : login;
-
- String password = request.getParameter("password");
- password = (password==null) ? "" : password;
-
- String forwardPage = "customer-list.jsp";
- String buttonLogin = "Login";
-
- // see if I was requested to logout
- boolean bLogout = Boolean.valueOf(request.getParameter("logout")).booleanValue();
-
- if (bLogout) {
- ses.session.logoff();
- ses.setLogin(null);
- }
- else
- {
- if(submit.equalsIgnoreCase(buttonLogin))
- {
- try {
- ICustomer account = (ICustomer)ses.session.login(login, password);
- ses.setLogin(account);
- if(account!=null)
- {
- Properties p = new Properties();
- String description = "Account Name: : "+account.getCustomerName()+", EMail: "+account.getEMail()+", Password: "+account.getPassword();
- p.put("description", description);
- ses.setNewHit(pageContext, "events", "Customer Account Login", p);
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- if(ses.getLogin()!=null)
- {
- if (!ses.getLogin().getHasClients())
- forwardPage = "product-list.jsp";
- %>
- <jsp:forward page="<%=forwardPage%>">
- </jsp:forward>
- <%
- }
- }
- %>
-
- <!-- HEADER -->
- <jsp:include page="header.jsp" flush="true">
- <jsp:param name="pageId" value="login"/>
- </jsp:include>
-
- <br>
- <table class="h9Verdana" cellpadding="5" width="100%" border="0">
- <!-- Prolog -->
- <tr>
- <td>
- ePortal is a restricted area available to our Customers and Partners only.
- <p>
- ePortal allows to manage product licenses, provides access to additional technical resources,
- grants access to the latest builds and more.
- <p>
- If you would like to become our Partner please
- <a class="h8VerdanaBold" href="<%=JSPRes.path%>/main/partners.jsp">read more</a> on our
- partnership program. If you're ready to buy JProxy Tunnel commercial license
- please visit our <a class="h8VerdanaBold" href="<%=JSPRes.path%>/main/buy.jsp">buy</a> page.
- <p>
- Please enter your ePortal login and password to proceed.
-
- <form method=POST action=<%=JSPRes.path%>/main/customers/login.jsp>
- <table class="h9Verdana" border="0" bgcolor="9c9cff" cellpadding="1" cellspacing="0">
- <tr>
- <td>
- ePortal Login
- </td>
- </tr>
- <tr>
- <td>
- <table class="h9Verdana" border="0" bgcolor="white" cellpadding="5" cellspacing="1" border=0>
- <tr class="h8Verdana">
- <td width="35%" align="right">
- <br>Login name:
- </td>
- <td align="left">
- <br><input type="text" name="login" size="20" maxlength="20" value="">
- </td>
- </tr>
- <tr class="h8Verdana">
- <td align="right">
- Password:
- </td>
- <td align="left">
- <input type="password" name="password" size="20" maxlength="20" value="">
- </td>
- </tr>
- <tr class="h8Verdana">
- <td></td>
- <td align="right">
- <br><INPUT name=submit style="HEIGHT: 24px; WIDTH: 70" type=submit value="<%=buttonLogin%>">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
-
- <!-- FOOTER -->
- <jsp:include page="footer.jsp" flush="true"/>
-